package com.tancire.net.domain;

import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tancire.common.annotation.Excel;
import com.tancire.common.core.domain.BaseEntity;

/**
 * 任务管理对象 shop_task
 *
 * @author chenchao
 * @date 2023-12-25
 */
public class ShopTask extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 任务名称
     */
    @Excel(name = "任务名称")
    private String taskName;

    /**
     * 对应认证源
     */
    @Excel(name = "对应认证源")
    private Long authId;

    /**
     * 资源编码
     */
    @Excel(name = "资源编码")
    private String authCode;

    /**
     * 资源名
     */
    @Excel(name = "资源名")
    private String authName;

    /**
     * 分成类型
     */
    @Excel(name = "分成类型")
    private String authGiveType;

    /**
     * 分成比例
     */
    @Excel(name = "分成比例")
    private BigDecimal authRate;

    /**
     * 资源简介
     */
    @Excel(name = "资源简介")
    private String taskAbst;

    /**
     * 资源介绍
     */
    @Excel(name = "资源介绍")
    private String taskDesc;

    /**
     * 状态 0 待审核 1 已上架 2 已下架
     */
    @Excel(name = "状态 0 待审核 1 已上架 2 已下架")
    private String taskStatus;

    /**
     * 是否置顶 0  否 1 是
     */
    @Excel(name = "是否置顶 0  否 1 是")
    private Integer taskTop;

    /**
     * 0 正常  1 删除  真删除，字段保留
     */
    private Integer delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setAuthId(Long authId) {
        this.authId = authId;
    }

    public Long getAuthId() {
        return authId;
    }

    public void setAuthCode(String authCode) {
        this.authCode = authCode;
    }

    public String getAuthCode() {
        return authCode;
    }

    public void setAuthName(String authName) {
        this.authName = authName;
    }

    public String getAuthName() {
        return authName;
    }

    public void setAuthGiveType(String authGiveType) {
        this.authGiveType = authGiveType;
    }

    public String getAuthGiveType() {
        return authGiveType;
    }

    public void setAuthRate(BigDecimal authRate) {
        this.authRate = authRate;
    }

    public BigDecimal getAuthRate() {
        return authRate;
    }

    public void setTaskAbst(String taskAbst) {
        this.taskAbst = taskAbst;
    }

    public String getTaskAbst() {
        return taskAbst;
    }

    public void setTaskDesc(String taskDesc) {
        this.taskDesc = taskDesc;
    }

    public String getTaskDesc() {
        return taskDesc;
    }

    public void setTaskStatus(String taskStatus) {
        this.taskStatus = taskStatus;
    }

    public String getTaskStatus() {
        return taskStatus;
    }

    public void setTaskTop(Integer taskTop) {
        this.taskTop = taskTop;
    }

    public Integer getTaskTop() {
        return taskTop;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("taskName", getTaskName())
                .append("authId", getAuthId())
                .append("authCode", getAuthCode())
                .append("authName", getAuthName())
                .append("authGiveType", getAuthGiveType())
                .append("authRate", getAuthRate())
                .append("taskAbst", getTaskAbst())
                .append("taskDesc", getTaskDesc())
                .append("taskStatus", getTaskStatus())
                .append("taskTop", getTaskTop())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
